package com.hgxd.mapper;

import com.hgxd.entity.pojo.SysRoleMenu;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 * 角色与菜单对应关系 Mapper 接口
 * </p>
 *
 * @author fsd
 * @since 2023-10-19
 */
@Mapper
public interface RoleMenuMapper extends BaseMapper<SysRoleMenu> {

    /**
     * 根据roleId,添加menuId数据
     * @param roleId
     * @param menuId
     * @return
     */
    Boolean insertByRoleId(@Param("roleId") Long roleId,@Param("menuId") Long menuId);
}
